Building Reliable AI with the Planner-Generator-Evaluator Pattern